package com.ruoyi.system.domain;

import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

import java.math.BigDecimal;

/**
 * 库存记录对象 wms_inventory_history
 * 
 * @author ruoyi
 * @date 2024-12-14
 */
public class History extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** $column.columnComment */
    private Long id;

    /** 操作id（出库、入库、库存移动表单id） */
    @Excel(name = "操作id", readConverterExp = "出=库、入库、库存移动表单id")
    private Long formId;

    /** 操作类型 */
    @Excel(name = "操作类型")
    private Long formType;

    /** 物料ID */
    @Excel(name = "物料ID")
    private Long itemId;

    /** 库存变化 */
    @Excel(name = "库存变化")
    private BigDecimal quantity;

    /** 删除标识 */
    private Long delFlag;

    /** 所属仓库 */
    @Excel(name = "所属仓库")
    private Long warehouseId;

    /** 所属库区 */
    @Excel(name = "所属库区")
    private Long areaId;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setFormId(Long formId) 
    {
        this.formId = formId;
    }

    public Long getFormId() 
    {
        return formId;
    }
    public void setFormType(Long formType) 
    {
        this.formType = formType;
    }

    public Long getFormType() 
    {
        return formType;
    }
    public void setItemId(Long itemId) 
    {
        this.itemId = itemId;
    }

    public Long getItemId() 
    {
        return itemId;
    }
    public void setQuantity(BigDecimal quantity) 
    {
        this.quantity = quantity;
    }

    public BigDecimal getQuantity() 
    {
        return quantity;
    }
    public void setDelFlag(Long delFlag) 
    {
        this.delFlag = delFlag;
    }

    public Long getDelFlag() 
    {
        return delFlag;
    }
    public void setWarehouseId(Long warehouseId) 
    {
        this.warehouseId = warehouseId;
    }

    public Long getWarehouseId() 
    {
        return warehouseId;
    }
    public void setAreaId(Long areaId) 
    {
        this.areaId = areaId;
    }

    public Long getAreaId() 
    {
        return areaId;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("formId", getFormId())
            .append("formType", getFormType())
            .append("itemId", getItemId())
            .append("quantity", getQuantity())
            .append("remark", getRemark())
            .append("delFlag", getDelFlag())
            .append("createBy", getCreateBy())
            .append("createTime", getCreateTime())
            .append("updateBy", getUpdateBy())
            .append("updateTime", getUpdateTime())
            .append("warehouseId", getWarehouseId())
            .append("areaId", getAreaId())
            .toString();
    }
}
